<h1>Prijavite se</h1>
<form action="javascript:void(0)" onsubmit="YambLogin(this)">
	<label for="username">Korisnicko ime:</label>
	<input type="text" name="username" id="username" />
	<label for="password">Lozinka:</label>
	<input type="password" name="password" id="password" />
	<input type="submit" class="submit" value="Prijavi se" />
	<p class="message"></p>
	<?php if($fb_player): ?>
		<br clear="all" />
		<img src="http://b.static.ak.fbcdn.net/rsrc.php/zU/r/YkBqJTSIXNq.png" align="left" hspace="2" />
		<a href="<?php echo $fb_me["link"]; ?>" target="_blank"><?php echo $fb_me["first_name"]." ".$fb_me["last_name"] ?></a>
	<?php else: ?>
		<fb:login-button onlogin="location.reload();">Facebook prijava</fb:login-button>
	<?php endif; ?>
</form>

<script type="text/javascript">
$(function(){
	getJavaScript("http://connect.facebook.net/en_US/all.js", function(data, textStatus){
		FB.init({
			appId: '<?php echo FB_APPID; ?>', 
			cookie:true,
			status:true,
			xfbml:true
		});
	});
});
</script>